package tripx.siteget.start;

import java.util.logging.LogManager;

import tripx.siteget.crawler.CityCrawler;

public class SiteGet {

	public static void main(String[] args) {
		if (args.length == 0) {
			System.out
					.println("We need an extra parameter to tell the city name");
		} else {
			// close log
			LogManager.getLogManager().reset();

			CityCrawler crawler = new CityCrawler(args[0]);
			crawler.crawl();
			crawler.crawlSites();
			crawler.crawFoods();
		}
	}
}
